package com.example.my2lcache.domain;

import java.io.Serializable;

/**
 * 缓存广播消息实体
 *
 * @author huhao
 */
public class CacheBroadcastMessage implements Serializable {

    private static final long serialVersionUID = 42L;

    /**
     * 类型
     */
    private String category;

    /**
     * 键
     */
    private String key;

    public CacheBroadcastMessage() {
    }

    public CacheBroadcastMessage(String category, String key) {
        this.category = category;
        this.key = key;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "CacheBroadcastMessage [category=" + category + ", key=" + key + "]";
    }
}
